package com.gjxy.service.impl;

import com.gjxy.dao.SeCourseDao;
import com.gjxy.entity.SeCourse;
import com.gjxy.entity.SeCourseClass;
import com.gjxy.entity.SeGrade;
import com.gjxy.entity.SeUser;
import com.gjxy.service.SeCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SeCourseServiceImpl implements SeCourseService {

    @Autowired
    SeCourseDao seCourseDao;
    @Override
    public List<SeCourse> getCoursesByTeacherName(String teacherName) {
        return seCourseDao.getCoursesByTeacherName(teacherName);
    }

    @Override
    public List<SeCourseClass> getClassesByCourseId(String id) {
        return seCourseDao.getClassesByCourseId(id);
    }

    public SeGrade getGradeById(String id) {
        return seCourseDao.getGradeById(id);
    }

    @Override
    public List<SeUser> getUsersByCid(String id) {
        return seCourseDao.getUsersByCid(id);
    }

}
